from django.conf.urls.defaults import *
from django.conf import settings

urlpatterns = patterns('',
    # ajax
    (r'^%s/' % settings.DAJAXICE_MEDIA_PREFIX, include('dajaxice.urls')),
    # apps
    (r'^home/', include('devnote.app.urls')),
    (r'^signup/', include('devnote.signup.urls')),
    (r'^login/', include('devnote.login.urls')),
    (r'^logout/', include('devnote.logout.urls')),
    # css
    (r'^home/notes/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'templates'}),
    (r'^home/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'templates'}),
    (r'^signup/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'templates'}),
    (r'^login/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'templates'}),
)
